import MessageItem from '../../message/MessageItem';
import {TMessage} from '../../../type/TMessage';
import {View} from '@ant-design/react-native';
import {Text} from 'react-native';
import React, {FC} from 'react';
const Advice: FC<{messageData: TMessage[]}> = ({messageData}) => {
  return (
    <View>
      {messageData.length > 0 ? (
        messageData.map(item => (
          <MessageItem key={item.id} messageData={item} />
        ))
      ) : (
        <View>
          <Text>暂无数据</Text>
        </View>
      )}
    </View>
  );
};
export default Advice;
